<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true" CodeFile="BlogDetail.aspx.cs" Inherits="Community_BelogDetail" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">
         <div class="heading_inner">
        <div class="heading_topic">
            <h2>Blog</h2>
        </div>
    </div>

    <div class="cl"></div>

    <!--**Content 1 Starts Here**-->

    <div class="formnew_left" style="background-color: #f4f4f4;">
          <div style="width:98%;padding:1%;height:auto">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td align="center" class="bodytxt" style="width: 516px;">
                                        <!-- contents -->
                                        <table width="100%" border="0">
                                            <tr>
                                                <td align="center" colspan="2"></td>
                                            </tr>
                                            <tr>
                                                <td align="center" colspan="2"></td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr valign="top">
                                    <td colspan="2" align="left">
                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                            <tr>

                                                <%if (DoctorName != "")
                                                  {%>
                                                <td class="headernew" style="border-bottom: 1px solid #eaeaea; padding: 5px 0;" valign="top">Blog by:<%=DoctorName%>                                                                                                                                                                     
                                                </td>
                                                <%} %>
                                                <%else
                                                  { %>
                                                <td style="color: Red; height: 11px;">No post exist of this month.
                                                </td>
                                                <%} %>
                                            </tr>
                                            <%if (DoctorName != "")
                                              {%>
                                            <tr>
                                                <td class="headernew" style="padding-right: 0px; padding-left: 0px; padding-bottom: 5px; padding-top: 5px; border-bottom: #eaeaea 1px solid"
                                                    valign="top">
                                                    <asp:GridView CssClass="normalgrey_12" AllowPaging="true" ID="grdBlogTitle" PageSize="5" runat="server" AutoGenerateColumns="False" ShowFooter="True" Width="100%" CellPadding="0" BorderWidth="0" OnPageIndexChanging="grdBlogTitle_PageIndexChanging">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                        <tr>
                                                                            <td style="height: 20px;" class="headernew">
                                                                                <a href="#<%# Eval("BlogTitle").ToString()%>"><%# Eval("BlogTitle").ToString()%></a>

                                                                            </td>
                                                                        </tr>

                                                                    </table>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>

                                                    </asp:GridView>
                                                </td>
                                                <td style="color: red; height: 11px"></td>
                                            </tr>
                                            <%} %>
                                            <tr>
                                                <td>
                                                    <asp:GridView ID="grdMessages" PageSize="5" runat="server" AutoGenerateColumns="False" ShowFooter="True" CssClass="normalgrey_12" Width="100%" AllowPaging="True" OnPageIndexChanging="grdMessages_PageIndexChanging" CellPadding="0" BorderWidth="0">
                                                        <Columns>
                                                            <asp:TemplateField>
                                                                <ItemTemplate>
                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                        <tr>
                                                                            <td class="headernew" style="height: 25px;">
                                                                                <b><%# Eval("BlogTitle").ToString()%></b> <a name='<%# Eval("BlogTitle").ToString()%>' style="visibility: hidden;" class="headernew"><b><%# Eval("BlogTitle").ToString()%></b></a>
                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 25px;">
                                                                            <td>Posted Date: <b><%# Eval("blogPostedDate").ToString()%></b>
                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 15px;">
                                                                            <td>&nbsp;</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>
                                                                                <%# Server.HtmlDecode(Eval("BlogMessage").ToString())%>&nbsp;&nbsp;<a href="<%=strURL%>/<%#lfunction.GetBlogTitle(strURlDoctorname)%>/<%#Eval("blogid")%>-<%#lfunction.GetBlogTitle(Eval("BlogTitleURL").ToString())%>.aspx">More.. </a>
                                                                            </td>
                                                                        </tr>
                                                                        <tr style="height: 20px;">
                                                                            <td>&nbsp;</td>
                                                                        </tr>
                                                                    </table>
                                                                </ItemTemplate>
                                                                <FooterTemplate>
                                                                </FooterTemplate>
                                                            </asp:TemplateField>
                                                        </Columns>
                                                        <RowStyle HorizontalAlign="Left" />
                                                        <FooterStyle HorizontalAlign="Left" />
                                                        <AlternatingRowStyle Wrap="True" />
                                                        <HeaderStyle Wrap="False" />
                                                        <PagerSettings FirstPageText="First" LastPageText="Last" Mode="NextPreviousFirstLast"
                                                            NextPageText="Next" PreviousPageText="Previous" />
                                                    </asp:GridView>
                                                </td>
                                            </tr>

                                        </table>
                                    </td>
                                </tr>

                                <tr>
                                    <td align="left" class="bodytxt" style="width: 516px; height: 8px;">
                                        <img src="../images/spacer.gif" alt="" width="8" height="8" /></td>
                                </tr>

                            </table>

        </div> </div>
    
    <script>
        function Messagewindow(strURL, MessageId, strURlBlogName) {


            var NewUrl;


            NewUrl = "strURL+" / "+&type=" + MessageId + "_" + strURlBlogName;

            window.href("" + NewUrl + "", null, "height=750,width=650,status=0,toolbar=0,resizable=1,scrollbars");


        }

    </script>

</asp:Content>


